package com.deer.wms.company.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wei
 * @since 2021-07-23
 */
@Data
@Accessors(chain = true)
@TableName("co_company")
@ApiModel(value = "Company对象", description = "")
public class Company{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "公司名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "企业登录账号ID")
    @TableField("manager_id")
    private String managerId;

    @ApiModelProperty(value = "当前版本")
    private String version;

    @ApiModelProperty(value = "续期时间")
    @TableField("renewal_date")
    private LocalDateTime renewalDate;

    @ApiModelProperty(value = "到期时间")
    @TableField("expiration_date")
    private LocalDateTime expirationDate;

    @ApiModelProperty(value = "公司地区")
    @TableField("company_area")
    private String companyArea;

    @ApiModelProperty(value = "公司地址")
    @TableField("company_address")
    private String companyAddress;

    @ApiModelProperty(value = "营业执照-照片ID")
    @TableField("business_license_id")
    private String businessLicenseId;

    @ApiModelProperty(value = "法人代表")
    @TableField("legal_representative")
    private String legalRepresentative;

    @ApiModelProperty(value = "公司电话")
    @TableField("company_phone")
    private String companyPhone;

    @ApiModelProperty(value = "邮箱")
    private String mailbox;

    @ApiModelProperty(value = "公司规模")
    @TableField("company_size")
    private String companySize;

    @ApiModelProperty(value = "所属行业")
    private String industry;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "审核状态")
    private Integer auditState;

    @ApiModelProperty(value = "当前余额")
    private Double balance;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
